package com.powernode.feign;

import com.powernode.domain.Member;
import com.powernode.feign.sentinel.RemoteUserFallbackFactory;
import com.powernode.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "member-service",fallback = RemoteUserFallbackFactory.class)
public interface RemoteUserService {

    @GetMapping("p/user/getMemberInfo/{id}")
    public Result<Member> getMemberInfo(@PathVariable("id") String id);

}
